{% extends "base.html" %}

{% block title %}查找会员信息{% endblock title %}
{% block subtitle %}会员信息 > 重置密码{% endblock subtitle %}

{% block content %}
<div id="find_info" class="new_win">
    <div class="new_win_con">
        <form name="fpasswordreset" action="/bbs/password_reset/{{ member.mb_id }}/{{ member.mb_lost_certify }}" onsubmit="return fpasswordreset_submit(this);" method="post" autocomplete="off">
            <input type="hidden" name="token" value="">
            <h3>重置密码</h3>
            <fieldset id="info_fs">
                <p>请输入要重置的密码.</p>
                <label for="mb_password" class="blind">密码<strong class="blind">必不可少的</strong></label>
                <input type="password" name="mb_password" id="mb_password" required="" class="required frm_input full_input" size="30" placeholder="密码">
                <label for="mb_password_confirm" class="blind">检查您的密码<strong class="blind">必不可少的</strong></label>
                <input type="password" name="mb_password_confirm" id="mb_password_confirm" required="" class="required frm_input full_input" size="100" placeholder="检查您的密码">
            </fieldset>

            <!-- Captcha Start -->
            <fieldset id="captcha" class="captcha">
                {% include captcha_widget(request) ignore missing %}
            </fieldset>
            <!-- Captcha End -->

            <div class="win_btn">
                <button type="submit" class="btn_submit">更改密码</button>
            </div>
        </form>
    </div>
</div>
<script>    
function fpasswordreset_submit(f) {
    // captcha 使用时
    if (typeof check_captcha === "function") {
        if (!check_captcha(f)) {
            return false;
        }
    }

    f.token.value = generate_token();

    return true;
}
</script>
{% endblock content %}